package com.habitracker.model;

public class Goal {
    private String name;
    private String category;
    private double progress;

    public Goal(String name, String category, double progress) {
        this.name = name;
        this.category = category;
        this.progress = progress;
    }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getCategory() { return category; }
    public void setCategory(String category) { this.category = category; }

    public double getProgress() { return progress; }
    public void setProgress(double progress) { this.progress = progress; }

    public String getProgressDisplay() {
        return progress == 0 ? "—%" : String.format("%.0f%%", progress * 100);
    }
}